package com.hashmap;

import com.sun.xml.internal.xsom.XSUnionSimpleType;

import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;

public class Poker {
    public static void main(String[] args) {
        List<String> pokerList = new ArrayList();
        String[] arrflow = {"♦️", "♣️", "♥️", "♠️"};
        String[] arrpai = {"A", "2", "3", "4", "5", "6", "7", "8", "9", "10", "J", "Q", "K"};
        for (String s : arrflow) {
            for (String s1 : arrpai) {
                pokerList.add(s + s1);
            }
        }
        pokerList.add("小王");
        pokerList.add("大王");
        Collections.shuffle(pokerList);
        ArrayList<String> play1 = new ArrayList<>();
        ArrayList<String> play2 = new ArrayList<>();
        ArrayList<String> play3 = new ArrayList<>();
        ArrayList<String> dipai = new ArrayList<>();

        for (int i = 0; i < pokerList.size(); i++) {
            if (i >= 51) {
                dipai.add(pokerList.get(i));
            } else if (i % 3 == 0) {
                play1.add(pokerList.get(i));
            } else if (i % 3 == 1) {
                play2.add(pokerList.get(i));
            } else if (i % 3 == 2) {
                play3.add(pokerList.get(i));
            }
        }


    }
}
